const express = require('express');
const router = require('./router/xmcz');
const cors = require('cors');
require('./database/init');
const xm =  require('./database/models/xm');
const app = express();
app.use(express.urlencoded({ extended: false }));
app.use('/xmcz', router);
app.use(cors({　　
    methods: ["GET", "POST"],
    　　alloweHeaders: ["Content-Type", "application/json;charset=utf-8;application/x-www-form-urlencoded"]
}));
app.listen(4000, () => {
    console.log(502122)
})